#include "utime.h"
namespace log4x
{
int
utime::localtime(time_t &t, struct tm& ltm)
{
    if (!::localtime_r(&t, &ltm))
    {
        return -1;
    }

    return 0;
}

char*
utime::strptime(const char* s, const char* f, struct tm* tm)
{
    return ::strptime(s, f, tm);
}
}
